-- GENERATED SPELL FOR [Longrunner Skycloud] --


function spell0_24209(pUnit, Event) --@Serpent Sting,n/a--
pUnit:FullCastSpellOnTarget(31975,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24209', 15000, 1)
end

function spell1_24209(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24209', 654, 1)
end

function Sorts_24209(pUnit, Event)
local choix_sorts_24209 = math.random(0, 1)
if choix_sorts_24209 == 0 then
pUnit:RegisterEvent('spell0_24209', 1, 1)
end
if choix_sorts_24209 == 1 then
pUnit:RegisterEvent('spell1_24209', 1, 1)
end
end

function mob24209_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24209', math.random(1500, 3000), 1)
end

function mob24209_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24209_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24209_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24209, 1, 'mob24209_Action')
RegisterUnitEvent(24209, 2, 'mob24209_Leave')
RegisterUnitEvent(24209, 3, 'mob24209_Kill')
RegisterUnitEvent(24209, 4, 'mob24209_Die')
